<template>
  <div class="footer">
    <h1>我是Footer</h1>
    <p>Count的值是{{ count1 }}</p>
  </div>
</template>

<script>
import { mapState } from 'vuex';
export default {
  name: "Footer",
  computed:{
    ...mapState({count1:'count'})
  }
};
</script>

<style scoped>
.footer {
  margin: 30px;
  background: palevioletred;
}
</style>